package com.job.DQH.dqh722.homework01;

/**
 * 自定义编译期异常：年龄赋值超出范围时异常
 */
public class AgeException extends Exception{
    private String message;

    public AgeException(String message) {
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
